package com.xl.generator.dto;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 比赛记录
 * @TableName competition_record
 */
@TableName(value ="competition_record")
@Data
public class CompetitionRecordDto implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @TableField(value = "userAccount")
    private String userAccount;

    @TableField(value = "competitionId")
    private Integer competitionId;
    /**
     * 
     */
    @TableField(value = "competitionSchemeId")
    private Integer competitionSchemeId;

    /**
     * 
     */
    @TableField(value = "competitionScore")
    private Integer competitionScore;

    /**
     * 是否通过
     */
    @TableField(value = "pass")
    private Integer pass;

    /**
     * 参赛时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "jionTime")
    private Date jionTime;
    //关联用户表用的
    private String userName;
    @TableField(value = "competitonDetailId")
    private String competitonDetailId;
    @TableField(value = "submitTime")
    private String submitTime;
    @TableField(value = "reviewTime")
    private String reviewTime;

    private String competitionContent;

    private JSONArray competitionContentObject;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}